package com.shoppingmall.service;

import com.shoppingmall.common.ServletResponse;

import java.util.Map;

/**
 * Created by
 *
 * @author touni
 * @date 2019/3/25
 * @time 12:43
 */
public interface OrderService {

    ServletResponse alipayOrder(Integer userId, Long orderId);

    ServletResponse alipayCallBack(Map<String, String> params);

    ServletResponse queryOrderPayStatus(Integer userId, Long orderId);

    //以上全为支付的
    ServletResponse createOrder(Integer userId, Integer shippingId);


    ServletResponse getAllOrderProduct(Integer id);

    ServletResponse listAllOrder(Integer userId,Integer pageSize,Integer pageNum);

    ServletResponse queryOrderDetail(Integer userId, Long orderNo);

    ServletResponse cancelOrder(Integer userId, Long orderNo);

    ServletResponse managerListAllUserOrder(Integer pageSize,Integer pageNum);

    ServletResponse searchOrderByOrderNo(Long orderNo);

    ServletResponse queryOrderDetailByOrderNu(Long orderNo);

    ServletResponse sendGoods(Long orderNo);
}
